package com.lp.user.control;

import com.lp.common.base.BaseController;
import com.lp.common.util.HttpClientUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@SpringBootApplication
@RequestMapping(value = "/sc")
public class SampleController extends BaseController {
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    String home(Integer id) {

        Map p=new HashMap();
        p.put("id",id);
        String str=HttpClientUtil.get("http://localhost:99/user/redis",p);

        return str;
    }
    public static void main(String[] args) {
		SpringApplication.run(SampleController.class, args);
	}
 
}